package com.kunchi.oms;

// 为了spring-boot全局配置导入的类。

import com.kunchi.isb.ISBApplication;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * ISBApplication 综合了ISB应用服务器启动的全部注释，可以直接拿来用。
 */
public class Application extends ISBApplication {


    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    @ApiOperation(value = "健康检查", notes = "用来给consul作健康检查的方法",produces = "application/json")
    @GetMapping("/health")
    public String health(){
        return "success";
    }


}